package com.kun.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

import java.time.LocalDateTime;
import java.util.List;

@Getter
@Setter
@ToString
@NoArgsConstructor
public class TFollowingGroup {

    /**
     * 主键ID
     */
    private Long id;
    /**
     * 用户ID
     */
    private Long userId;
    /**
     * 关注分组名称
     */
    private String name;
    /**
     * 关注分组类型 (0 特别关注，1 悄悄关注，2 默认分组，3 用户自定义组)
     */
    private String type;
    /**
     * 创建时间
     */
    private LocalDateTime createTime;
    /**
     * 更新时间
     */
    private LocalDateTime updateTime;

    @TableField(exist = false)
    private List<TUserInfo> followingUserInfoList;

    public TFollowingGroup(Long userId, String name, String type, LocalDateTime createTime) {
        this.userId = userId;
        this.name = name;
        this.type = type;
        this.createTime = createTime;
    }

    public TFollowingGroup(Long id, Long userId, String name, String type, LocalDateTime createTime) {
        this.id = id;
        this.userId = userId;
        this.name = name;
        this.type = type;
        this.createTime = createTime;
    }
}
